
import studentCenter from "@/components/teachingCenter";
import home from "@/views/home";
import user from "@/views/user"
import userInfo from '@/components/userinfo'
import authen from '@/components/authencation'
import teachingCenter from "@/components/teachingCenter";
import course from "@/components/course"
import myCourseTeach from "@/views/teachingCenter/myCourseTeach"
import courseMenuTeach from "@/views/course/courseMenuTeach"
import courseTaskTeach from "@/views/course/courseTaskTeach";
import courseExamTeach from "@/views/course/courseExamTeach"
import courseQuestionTeach from "@/views/course/courseQuestionTeach"
import paperDetail from "@/views/course/paperDetail"
import courseClass from "@/views/course/courseClassTeach"
const routers =[
    {
        path:'/',
        component: home,
        children :[
            {
                path: '/teachingCenter',
                name: 'teachingCenter',
                component: teachingCenter,
                children: [{
                    path: "myCourse",
                    name:"myCourseTeach",
                    component: myCourseTeach
                }]
            },
            {
                path: '/course',
                name: 'course',
                component: course,
                children: [
                    {
                        path:"/courseMenu",
                        name:"courseMenuTeach",
                        component: courseMenuTeach
                    },
                    {
                        path:"/courseTask",
                        name:"courseTaskTeach",
                        component: courseTaskTeach
                    },
                    {
                        path:"/courseExam",
                        name:"courseExamTeach",
                        component: courseExamTeach
                    },
                    {
                        path:"/courseQuestion",
                        name:"courseQuestionTeach",
                        component: courseQuestionTeach
                    },
                    {
                        path: "/courseClass",
                        name:"courseClass",
                        component: courseClass
                    }
                ]
            },
            {
                path:"/paperDetail",
                name:paperDetail,
                component: paperDetail
            },
            {
                path: '/user',
                name: 'user',
                component: user,
                children: [
                    {
                        path: '/userinfo',
                        name: 'userinfo',
                        component: userInfo,
                    },
                    {
                        path: '/authen',
                        name: 'authen',
                        component: authen, 
                    }
                ]
            }
        ]
    },
    {
        path: '/studentCenter',
        component: studentCenter,   
    }
]
export default routers